﻿@model IEnumerable<MVC3MusicStore.Models.Genre>
@{
    ViewBag.Title = "Store";
    ViewBag.Active = "Store";
}
<h2>
    Browse Genres</h2>
<p>
    Select from @Model.Count() genres:</p>
<ul>
    @foreach (var genre in Model)
    {
        //<li>@genre.Name</li>  
        //<li><a href="/Store/Browse?genre=@genre.Name">@genre.Name</a></li> 
        //<li><a href="/Store/Browse/@genre.Name">@genre.Name</a></li>
        <li>@Html.ActionLink(genre.Name, "Browse", new { genre = genre.Name })</li>    
    }
</ul>
